@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';
@import './btn.scss';

body {
  // font-size:16px; //全局根元素字体大小
  @media (max-width: 1600px){
    font-size:14px;
  }
  @media (min-width: 1600px){
    font-size:16px;
  }
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
  min-width: 1200px;
  -moz-user-select:none;/*火狐*/
  -webkit-user-select:none;/*webkit浏览器*/
  -ms-user-select:none;/*IE10*/
  -khtml-user-select:none;/*早期浏览器*/
    user-select:none;
    overflow: hidden;
  .el-table__row{
    .cell{
      -moz-user-select:text;/*火狐*/
      -webkit-user-select:text;/*webkit浏览器*/
      -ms-user-select:text;/*IE10*/
      -khtml-user-select:text;/*早期浏览器*/
        user-select:text;
    }

  }
}

label {
  font-weight: 700;
}

html {
  // font-size:16px; //全局根元素字体大小
  @media (max-width: 1600px){
    font-size:14px;
  }
  @media (min-width: 1600px){
    font-size:16px;
  }
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

.no-padding {
  padding: 0px !important;
}

.padding-content {
  padding: 4px 0;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.fr {
  float: right;
}

.fl {
  float: left;
}

.pr-5 {
  padding-right: 5px;
}

.pl-5 {
  padding-left: 5px;
}

.block {
  display: block;
}

.pointer {
  cursor: pointer;
}

.inlineBlock {
  display: block;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

aside {
  background: #eef1f6;
  padding: 8px 24px;
  margin-bottom: 20px;
  border-radius: 2px;
  display: block;
  line-height: 32px;
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  color: #2c3e50;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  a {
    color: #337ab7;
    cursor: pointer;

    &:hover {
      color: rgb(32, 160, 255);
    }
  }
}


//main-container全局样式
.app-container {
  padding: 8px 8px 0px 8px;
  height:calc(100vh - 34px - #{$navBarTop});
  overflow: hidden;
  overflow-y: auto;
  // display:flex;
  // flex-direction:column;
  // height:calc(100vh - 154px);
}

// .app-container>div:first-child{
//   display:flex;
//   flex-direction:column;
//   height:100%;
//   .card-bread-crumb {
//     flex-shrink: 0;
//   }
//   .dynamicSearch {
//     flex-shrink: 0;
//   }
//   .dynamicContext  {
//     flex: auto;
//   }
// }

//dynamic-container全局样式
.dynamic-container {
  padding: 8px 8px 0px 8px;
  // display:flex;
  // flex-direction:column;
  height:calc(100vh - 34px - #{$navBarTop});
}

.dynamicBi-container {
  padding: 8px 8px 0px 8px;
  position: relative !important;
  // display:flex;
  // flex-direction:column;
  height:calc(100vh - 234px - #{$navBarTop});
}

.dynamic-container>div:first-child{
  display:flex;
  flex-direction:column;
  height:100%;
  // .card-bread-crumb {
  //   flex-shrink: 0;
  // }
  .dynamicBreadCrumb{
    flex-shrink: 0;
    margin-right:11px;
  }
  .dynamicSearch {
    flex-shrink: 0;
  }
  .dynamicContext  {
    flex: auto;
  }
}

.dynamicBi-container>div:first-child{
  display:flex;
  flex-direction:column;
  height:100%;
  // .card-bread-crumb {
  //   flex-shrink: 0;
  // }
  .dynamicBreadCrumb{
    flex-shrink: 0;
    margin-right:11px;
  }
  .dynamicSearch {
    flex-shrink: 0;
  }
  .dynamicContext  {
    flex: auto;
  }
}

.dynamic-master-container{
  display:flex;
  flex-direction:column;
  height:100%;
  // .card-bread-crumb {
  //   flex-shrink: 0;
  // }
  .dynamicBreadCrumb{
    flex-shrink: 0;
    margin-right:11px;
  }
  .dynamicSearch {
    flex-shrink: 0;
  }
  .dynamicContext  {
    flex: auto;
  }
}

#app-container{
  background: #f4f6f9;
}

.components-container {
  margin: 30px 50px;
  position: relative;
}

.pagination-container {
  margin-top: 30px;
}

.text-center {
  text-align: center
}

.sub-navbar {
  height: 50px;
  line-height: 50px;
  position: relative;
  width: 100%;
  text-align: right;
  padding-right: 20px;
  transition: 600ms ease position;
  background: linear-gradient(90deg, rgba(32, 182, 249, 1) 0%, rgba(32, 182, 249, 1) 0%, rgba(33, 120, 241, 1) 100%, rgba(33, 120, 241, 1) 100%);

  .subtitle {
    font-size: 20px;
    color: #fff;
  }

  &.draft {
    background: #d0d0d0;
  }

  &.deleted {
    background: #d0d0d0;
  }
}

.link-type,
.link-type:focus {
  //color: #337ab7;
  color: #EE6666;
  cursor: pointer;

  &:hover {
    color: rgb(32, 160, 255);
  }
}

.filter-container {
  padding-bottom: 10px;

  .filter-item {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 10px;
  }
}

//refine vue-multiselect plugin
.multiselect {
  line-height: 16px;
}

.multiselect--active {
  z-index: 1000 !important;
}

.bi-card{
  .el-tabs__nav{
    float:right !important;
  }
  .el-tabs__nav-wrap:after{
    height:0px !important;
  }
}
.littleHead{
  display: inline-block;
  margin-bottom:10px;
}

.context-bg{
  background-color:#f8f8f9;
  border-radius: 5px;
  padding:16px;
}

.textStyle{
  line-height: 35px !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
//   .el-tooltip {
//     white-space: nowrap;
//     min-width: 50px;
// }
}

.textStyle1{
  color: #353535 !important;
  font-weight: 500;
}

.textStyle2{
  color: #353535 !important;
  opacity: .6 !important;
  font-weight: 500;


}

.el-tree--highlight-current .el-tree-node.is-current > .el-tree-node__content{
  background-color: #ee6666;
  color:#ffffff;
}

.treeStyle {
  position: relative;
  color: #373a3f;
  font-size: 14px;
}
.treeStyle::before{
  width: 3px;
    position: absolute;
    content: '';
    height: 98%;
    top: 1px;
    left: 0px;
    border-radius: 2px;
    background-color: #EE6666;
}

/* 滚动条 */
::-webkit-scrollbar-thumb:horizontal { /*水平滚动条的样式*/
  width: 15px;
  background-color: #CCCCCC;
  border-radius: 6px;
}
::-webkit-scrollbar-track-piece {
  background-color: transparent; /*滚动条的背景颜色*/
  border-radius: 0; /*滚动条的圆角宽度*/
}
::-webkit-scrollbar {
  width: 5px; /*滚动条的宽度*/
  height: 8px; /*滚动条的高度*/
}
::-webkit-scrollbar-thumb:vertical { /*垂直滚动条的样式*/
  height: 50px;
  background-color: #CCCCCC;
  border-radius: 4px;
  // outline: 2px solid #fff;
  // outline-offset: -2px;
  // border: 2px solid #fff;
}
::-webkit-scrollbar-thumb:hover { /*滚动条的hover样式*/
  height: 50px;
  background-color: #9f9f9f;
  border-radius: 4px;
}

.el-scrollbar .el-scrollbar__wrap {
  overflow-x: hidden;
}
.el-tree>.el-tree-node {
  min-width: 100%;
  display:inline-block;
}

.el-select-dropdown .el-scrollbar .el-scrollbar__wrap
{
    overflow: scroll!important;
}

.el-form-item--medium .el-form-item__content{
  line-height: 40px;
}

.el-tooltip__popper {
  max-width: 60%!important;
}

// .el-dialog{
//   display: flex;
//   flex-direction: column;
//   margin:0 !important;
//   position:absolute;
//   top:45%;
//   left:50%;
//   transform:translate(-50%,-50%);
// }

// .el-dialog .el-dialog__body{
//   flex:1;
//   overflow: auto;
// }

.el-link.el-link--info{
  color:#1871D1 !important
}
.el-link.el-link--info:hover {
  color: #1871D1 !important;
}

.el-link.el-link--info.is-underline:hover:after {
  border-color: #1871D1 !important;
}

// .el-dialog{
//   display: flex;
//   flex-direction: column;
//   margin:0 !important;
//   position:absolute;
//   top:30%;
//   left:50%;
//   transform:translate(-50%,-50%);
//   // height:600px;
//   max-height:calc(100% - 30px);
//   max-width:calc(100% - 30px);
// }
// .el-dialog .el-dialog__body{
//   flex:1;
//   overflow: auto;
// }

// .el-input--medium .el-input__inner {
//   height: 42px !important;
//   line-height: 42px !important;
// }

// .el-input--small .el-input__inner {
//   height: 42px !important;
//   line-height: 42px !important;
// }
.el-select {

  width: 100%  !important;
}

.grid-content .vue-treeselect__control{
  width: 100%  !important;
}

.el-form-item--medium .el-form-item__content {
  line-height: 32px !important;
}
.vue-treeselect__control{
  height:32px !important;
}
.main-form .vue-treeselect__control {
  width: 100%;
}

.dynamicSearch .vue-treeselect__control {
  width: 220px;
}

.dynamicSearch .vue-treeselect__value-container,
.vue-treeselect__multi-value {
  width: 220px;
}

// .dynamicList .el-table--medium td, .dynamicList .el-table--medium th {
//   padding: 0px 0 !important;
// }
.el-table--medium th, .el-table--medium td{
  height:37px;
  padding: 0px 0 !important;
}



.dynamicSearch .el-form-item{
  margin-bottom:0px !important;
}



.flex, .flex-c { display: flex }
.flex-c { flex-direction: column; }
.flex-a { flex: auto; }
.flex-s { flex-shrink: 0; }

// .el-dialog__wrapper{
//   position: absolute !important;
//   top: 0;
// right: 0;
// bottom: 0;
// left: 0;
// overflow: auto;
// margin: 0;
// }

// .app-container{
//   position: relative !important;
// }

.dynamic-container{
  position: relative !important;
}

.el-dialog__header{
  border-bottom:1px solid #dfe6ec;
  border-top:1px solid #dfe6ec;
  background-color: #F5F5F5;
}

// .el-dialog__body{
//   height:calc(100vh - 56px - 66px - 120px);
//   overflow: hidden;
//   overflow-y: auto;
// }

.el-tabs--border-card>.el-tabs__content{
  padding:0px !important;
}

.el-popup-parent--hidden .fixed-header{
  padding-right:0px !important;
}

.details-content{
  margin: 0 10px 0 0 ;
  .button-content{
    width:100%;height:40px;
    .top-button-box{
      float:right;
      margin:5px 0 5px 5px
    }
    .bottom-button-box{
      float:right;
      margin-bottom: 50px;
    }
  }
}
.el-loading-mask{
  z-index:4000 !important;
}
.el-textarea__inner{
  min-height:36px !important;
}
.mis-tree-transfer{
  .el-tree-node__content .is-disabled {
    display: none ;
  }
}
.fullHeight{
  height: 100%;
}
// 主轴 x
.setFlexBox{
  display: flex;
  flex-direction: column;
}
// 主轴 y
.setLineFlexBox{
  display: flex;
}
.flexOne{
  flex:1
}
.paginationPage{
  position: relative;
  top:-15px
}
